package cn.iocoder.yudao.module.scenic.remote.model.result;

import cn.iocoder.yudao.module.scenic.remote.model.ToString;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author superzp
 * @date 2024/04/12 16:48
 */
@NoArgsConstructor
@Data
public class KnowledgeSearchResult extends ToString {


    @JsonProperty("page_content")
    private String pageContent;
    @JsonProperty("metadata")
    private MetadataDTO metadata;
    @JsonProperty("type")
    private String type;
    @JsonProperty("id")
    private String id;
    @JsonProperty("score")
    private Double score;

    @NoArgsConstructor
    @Data
    public static class MetadataDTO {
        @JsonProperty("source")
        private String source;
        @JsonProperty("id")
        private String id;
    }
}
